package auth

import (
	"GoScaffoldDemo/controllers/auth"

	"github.com/gin-gonic/gin"
)

func RegisterAuth(api *gin.RouterGroup) {
	login(api)
	logout(api)
}

func login(api *gin.RouterGroup) {
	api.POST("/login", auth.Login)
}

func logout(api *gin.RouterGroup) {
	api.POST("/logout", auth.Logout)
}
